package com.ltmonitor.dao;

import java.util.List;
import java.util.Map;

import com.github.miemiedev.mybatis.paginator.domain.PageBounds;

public interface IBaseIbatisDao {	
	/**
	 * 分页查询
	 * @param params 查询条件
	 * @param pageBounds 分页
	 * @return
	 */
    public List<Map<String, Object>> queryByPagination(String queryId, Map params ,PageBounds pageBounds);
    /**
     * 一次性查询符合条件的所有结果集
     * @param queryId
     * @param params
     * @return
     */
    List<Map<String, Object>> query(String queryId, Map params);
	public abstract boolean checkTableExist(String tableName);
	public abstract void createNewAlarmTableIfNotExist(String tableName);
	public abstract void createGpsInfoTableIfNotExist(String tableName);
	public abstract void insert(final String statementName, Object paramMap);
	public abstract void update(final String statementName, Object paramMap);
	public abstract void batchInsert(final String insertStatementId, final List list);
	public abstract void batchUpdate(final String statementName, final List list);

}
